package framework.command;

public class CommandManager {
    private static CommandManager instance;

    private CommandManager() {
    }


    public static CommandManager getInstance() {
        if (instance == null) {
            instance = new CommandManager();
        }
        return instance;
    }

    public void submit(ICommand command) {
        command.execute();
    }

    public void submit(ICommand command, IFunctor iFunctor) {
        command.execute(iFunctor);
    }
}
